import * as material from 'material-colors';

let presetColors = [
  '#FFF',
  '#EEE',
  '#DDD',
  '#BBB',
  '#999',
  '#666',
  '#333',
  '#000'
];
const colorMap = [
  'red',
  'pink',
  'purple',
  'deepPurple',
  'indigo',
  'blue',
  'lightBlue',
  'cyan',
  'teal',
  'green',
  'lightGreen',
  'lime',
  'yellow',
  'amber',
  'orange',
  'deepOrange',
  'brown',
  'blueGrey',
];
const collectPresetColors = () => {
  let colors = [];
  colorMap.forEach(key => {
    let index = 900;
    while (index >= 100) {
      index = index - 200;
      const color = material[key][index];
      color && presetColors.unshift(color);
    }
  });
  return colors;
};
collectPresetColors();


export default presetColors;
